SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO


CREATE PROCEDURE dbo.DnnProduct_DeletePortalLanguages
    @PortalId int,
    @LanguageId int
AS
BEGIN
    IF @PortalId is not null AND @LanguageId is not null
       DELETE FROM dbo.DnnProduct_PortalLanguages WHERE PortalId = @PortalId AND LanguageId = @LanguageId
    ELSE IF @PortalId is not null
       DELETE FROM dbo.DnnProduct_PortalLanguages WHERE PortalId = @PortalId
    ELSE IF @LanguageId is not null
       DELETE FROM dbo.DnnProduct_PortalLanguages WHERE LanguageId = @LanguageId
END
GO
